﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.Archives.Entitys.Archives
{
    /// <summary>
    /// 档案动态字段信息基类
    /// </summary>
    [SugarTable("base_archivesdynamicfields")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ArchivesDynamicFieldsEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", ColumnDescription = "id")]
        public string Id { get; set; }

        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 所属档案id
        /// </summary>
        [SugarColumn(ColumnName = "F_ArchivesId", ColumnDescription = "所属档案id")]
        public string ArchivesId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorTime", ColumnDescription = "创建时间")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorUserId", ColumnDescription = "创建用户")]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 动态字段类型(0.文本框 1.多行文本 2.数字 3.时间 4.日期 5.富文本)
        /// </summary>
        [SugarColumn(ColumnName = "F_FieldType", ColumnDescription = "动态字段类型")]
        public int FieldType { get; set; }

        /// <summary>
        /// 动态字段名称
        /// </summary>
        [SugarColumn(ColumnName = "F_FieldName", ColumnDescription = "动态字段名称")]
        public string FieldName { get; set; }

        /// <summary>
        /// 动态字段值
        /// </summary>
        [SugarColumn(ColumnName = "F_FieldValue", ColumnDescription = "动态字段值")]
        public string FieldValue { get; set; }
    }
}
